<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		window.onload= function () {
			span1 = document.getElementById('span1');
			// span1.style.color ="red";
			// 
			// span1.parentNode.parentNode.style.background= "red";
			console.log(span1.nextSibling.nextSibling);
			// span1.childNodes[3].style.color='red';
		}
	</script>
</head>
<body>
	<p>
		<span id="span1">
			<a href="">百度一下</a>
			<a href="">百度一下</a>
			<a href="">百度一下</a>
			这个是span里面的
		</span>
		<span>span2</span>
	</p>
	<span>学并思</span>
	<p>
		<span>span3</span>
		<span>span4</span>
	</p>
</body>
</html>